// 运行时配置

// 全局初始化数据配置，用于 Layout 用户信息和权限初始化
// 更多信息见文档：https://umijs.org/docs/api/runtime-config#getinitialstate
// import type { RequestConfig } from '@umijs/max';

import React from "react";
import { request as requestConfig } from "@/utils/request";
import type { RequestConfig } from "@umijs/max";
import '@/assets/iconfont/iconfont.css'
export async function getInitialState(): Promise<{ name: string }> {
  return { name: "@umijs/max" };
}

export function rootContainer(container: any) {
  //使用自己的layout布局
  const EnhanceContainer = require("@/pages/Enhance").default;
  return React.createElement(EnhanceContainer, null, container);
}

export const request: RequestConfig = requestConfig;